package com.cn.demo4.thread.runnable;

/**
 * @author Administrator
 * TestRunnable（执行MyRunnable的类）
 */
public class TestRunnable {
    public static void main(String[] args) {
        //创建MyRunnable对象
        MyRunnable myRunnable = new MyRunnable();
        //创建线程对象，并将MyRunnable对象闯入线程的构造方法里面
        Thread thread = new Thread(myRunnable);
        //开启线程
        thread.start();

    }
}
